"use strict";
const chp = require("child_process");
const p = require("path");
const { Controller } = require("egg");

class AdminController extends Controller {
  async index() {
    const { ctx } = this;
    // ctx.body = "<h1>film manage api site!</h1>";
    await ctx.render("admin/main.html", {page: 'index'});
  }
  async tvAdd() {
    const { ctx } = this;
    await ctx.render("admin/main.html", {page: 'tv_add'});
  }
  async tvList() {
    const { ctx } = this;
    await ctx.render("admin/main.html", {page: 'tv_list'});
  }
  async tvClassify() {
    const { ctx } = this;
    await ctx.render("admin/main.html", {page: 'tv_classify'});
  }
  async movieAdd() {
    const { ctx } = this;
    await ctx.render("admin/main.html", {page: 'movie_add'});
  }
  async movieList() {
    const { ctx } = this;
    await ctx.render("admin/main.html", {page: 'movie_list'});
  }
  async movieClassify() {
    const { ctx } = this;
    await ctx.render("admin/main.html", {page: 'movie_classify'});
  }
  async appSetting() {
    const { ctx } = this;
    await ctx.render("admin/main.html", {page: 'app_setting'});
  }
}

module.exports = AdminController;
